package com.example.tass.domain;

import cn.tass.exceptions.TAException;

public class MyGenSymKeyRequest extends MyBaseRequest{
    private String algName;
    private int keySize;
    private String encKeyId;
    private String enckeyAccessCode;
    private int encMode;
    private int encPadMode;
    private String encIv;

    public MyGenSymKeyRequest() {
    }

    public String getAlgName() {
        return this.algName;
    }

    public void setAlgName(String algName) {
        this.algName = algName;
    }

    public int getKeySize() {
        return this.keySize;
    }

    public void setKeySize(int keySize) {
        this.keySize = keySize;
    }

    public String getEncKeyId() {
        return this.encKeyId;
    }

    public void setEncKeyId(String encKeyId) {
        this.encKeyId = encKeyId;
    }

    public String getEnckeyAccessCode() {
        return this.enckeyAccessCode;
    }

    public void setEnckeyAccessCode(String enckeyAccessCode) {
        this.enckeyAccessCode = enckeyAccessCode;
    }

    public int getEncMode() {
        return this.encMode;
    }

    public void setEncMode(int encMode) {
        this.encMode = encMode;
    }

    public int getEncPadMode() {
        return this.encPadMode;
    }

    public void setEncPadMode(int encPadMode) {
        this.encPadMode = encPadMode;
    }

    public String getEncIv() {
        return this.encIv;
    }

    public void setEncIv(String encIv) {
        this.encIv = encIv;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.algName, "algName");
    }

    @Override
    public String toString() {
        return "MyGenSymKeyRequest{" +
                "algName='" + algName + '\'' +
                ", keySize=" + keySize +
                ", encKeyId='" + encKeyId + '\'' +
                ", enckeyAccessCode='" + enckeyAccessCode + '\'' +
                ", encMode=" + encMode +
                ", encPadMode=" + encPadMode +
                ", encIv='" + encIv + '\'' +
                '}';
    }
}
